﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InfoPick.Lib.DataProvider
{
    public class DataProviderDecorator : DataProvider
    {
        protected IDataProvider provider;

        public DataProviderDecorator(IDataProvider provider)
        {
            this.provider = provider;
        }

        public override bool Begin()
        {
            return provider.Begin();
        }

        public override void Complete()
        {
            provider.Complete();
        }

        public override Action<string> OnNotice
        {
            get
            {
                return onNotice;
            }
            set
            {
                if (provider != null)
                    provider.OnNotice = value;
                onNotice = value;
            }
        }

        public override Action<string, string> OnCmdSuccess
        {
            get
            {
                return onCmdSuccess;
            }
            set
            {
                if (provider != null)
                    provider.OnCmdSuccess = value;
                onCmdSuccess = value;
            }
        }

        public override string GetTdmiuList()
        {
            throw new NotImplementedException();
        }

        public override string GetE32List()
        {
            throw new NotImplementedException();
        }

        public override string GetS2lList()
        {
            throw new NotImplementedException();
        }

        public override string GetEpiList()
        {
            throw new NotImplementedException();
        }

        public override string GetCsuList()
        {
            throw new NotImplementedException();
        }

        public override string GetN7LNKALLList()
        {
            throw new NotImplementedException();
        }

        public override string GetN7TKCList()
        {
            throw new NotImplementedException();
        }

        public override string GetAIETKCList()
        {
            throw new NotImplementedException();
        }


        public override string GetAIETGList()
        {
            throw new NotImplementedException();
        }

        public override string GetN7LNKList()
        {
            throw new NotImplementedException();
        }

        public override string GetMTP2LNKAllList()
        {
            throw new NotImplementedException();
        }

        public override string GetMTP2LNKList(int key)
        {
            throw new NotImplementedException();
        }

        public override string GetCLKSRCList()
        {
            throw new NotImplementedException();
        }
    }
}
